from bs4 import BeautifulSoup
import lxml
def extract_d_from_svg(file_path):
    with open(file_path, 'r') as file:
        contents = file.read()

    soup = BeautifulSoup(contents, 'lxml')
    paths = soup.find_all('path')

    d_values = [path.get('d') for path in paths]

    return " ".join(d_values)

# Usage
import sys

file_path = sys.argv[1] + ".svg"
result = extract_d_from_svg(file_path)
print(result)
